<template>
  <div class="top">
        <div class="top-box">
          <p><span><i class="iconfont icon-shangjiantou"></i></span></p>
          <p><span class="top-text">顶部</span></p>
        </div>
      </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.top{
      position: fixed;
      bottom: 15%;
      right: 9%;
      z-index: 1000;
      text-align: center;
      background: #fff;
      color: #999;
      padding: 6px;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.2s;
      &:hover{
        color: #f60;
        background: rgba(255,102,0,0.1);
      }
      .top-text{
        font-size: 14px;
      }
    }
</style>
